# -*- coding: utf-8 -*-
import os

_default_config = {
    # data
    'provider': 'SimProvider',
    'provider_uri': '/data/qlib',
    # cache
    'mem_cache_size_limit': 500,
}

class Config:

    def __getitem__(self, key):
        return _default_config[key]

    def __getattr__(self, attr):
        return _default_config[attr]

    def __setitem__(self, key, value):
        _default_config[key] = value

    def __setattr__(self, attr, value):
        _default_config[attr] = value

# global config        
C = Config()
